﻿/* ===================================尊重原著======================================
 * 创 建 者：mao xiao jun 
 * 创建日期：2021-12-12
 * CLR Version : any
 * ===================================尊重原著=====================================*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MTP.Serialize
{

    public interface IMTPRegistry
    {
        /// <summary>
        /// 连接
        /// </summary>
        /// <returns></returns>
        Task Connect();
        /// <summary>
        /// 注册
        /// </summary>
        /// <returns></returns>
        Task Registry(int port, string cipher, string[] serviceNames);
       

        /// <summary>
        /// 重置配置
        /// </summary>
        event Action<RemoteOptions[]> Reload;

    }

}
